const mongo = require('mongoose');
let Schema = mongo.Schema;

let User = new Schema({
    realname: String,
    username: String,
    password: String,
    department: String,
    sex: String,
    isFormalEmployee: Boolean,
    isOutSource: Boolean,
    isAllianceEmployee: Boolean,
    isAdmin: Boolean,
    detail: {
        address: String,
        birthDay: Date,
        cellPhone: String,
        Phone: String,
        exWork: String,
    }
})